home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.plaf.basic;
-
- import com.sun.java.swing.Timer;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import java.io.Serializable;
- import java.util.EventObject;
-
- public class BasicSliderUI$ScrollListener implements ActionListener, Serializable {
- // $FF: synthetic field
- BasicSliderUI this$0;
- int direction;
- boolean useBlockIncrement;
-
- // $FF: synthetic method
- public BasicSliderUI$ScrollListener(BasicSliderUI this$0) {
- this.this$0 = this$0;
- this.direction = 1;
- this.direction = 1;
- this.useBlockIncrement = true;
- }
-
- // $FF: synthetic method
- public BasicSliderUI$ScrollListener(BasicSliderUI this$0, int dir, boolean block) {
- this.this$0 = this$0;
- this.direction = 1;
- this.direction = dir;
- this.useBlockIncrement = block;
- }
-
- public void setDirection(int direction) {
- this.direction = direction;
- }
-
- public void setScrollByBlock(boolean block) {
- this.useBlockIncrement = block;
- }
-
- public void actionPerformed(ActionEvent e) {
- if (this.useBlockIncrement) {
- this.this$0.scrollByBlock(this.direction);
- } else {
- this.this$0.scrollByUnit(this.direction);
- }
-
- if (!BasicSliderUI.access$trackListener(this.this$0).shouldScroll(this.direction)) {
- ((Timer)((EventObject)e).getSource()).stop();
- }
-
- }
- }
-